<%@ page language="java" pageEncoding="UTF8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>


<div id="welcome">
	<p id="error">
		<logic:present name="messages">			
			<logic:iterate id="msg" name="messages">
				<br>${fn:escapeXml(msg)}
			</logic:iterate>
		</logic:present>
	</p>
	<div class="d0">
		<p class="legend">
			<bean:message bundle="inter" key="showProjects.project.caption" />
		</p>

		<logic:present name="projects">
			<div class="display">
			  <display:table id="row" name="projects" export="true" requestURI="/dashboard.do" decorator="org.insia.smartposse.displaytag.Wrapper">
				<display:column property="title" titleKey="dashboard.project.title" sortable="true" />
				<display:column property="start_date" titleKey="dashboard.project.startdate" sortable="true" />
				<display:column property="budget" titleKey="dashboard.project.budget" />
				<display:column property="description" titleKey="dashboard.project.description" />		
				<display:column property="societe" titleKey="dashboard.project.societe" sortable="true" />
				
				<display:column property="linkAddToMe" titleKey="dashboard.project.societe" title="Option" sortable="true" />
			  </display:table>
			</div>
		</logic:present>
	</div>
</div>